cmake_minimum_required(VERSION 2.8)

project(loger)

# CMAKE_BUILD_TYPE
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
message(STATUS "CMAKE_BUILD_TYPE:${CMAKE_BUILD_TYPE}")

if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
message(STATUS "now define marco _DEBUG")
add_definitions(-D_DEBUG)
endif()

option(BUILD_TESTS "build tests?" ON)

if(BUILD_TESTS)
add_subdirectory(build_tests)
endif()
